﻿@namespace AntDesign
@inherits AntDomComponentBase

<CascadingValue Value="this">
    <li class="@ClassMapper.Class" role="menuitem" style=" @(PaddingLeft>0? $"padding-left:{PaddingLeft}px;":"") @Style" @onclick="HandleOnClick" @key="Key">
        @if (RouterLink == null)
        {
            @ChildContent
        }
        else
        {
            <MenuLink Href="@RouterLink" Match="@RouterMatch">@ChildContent</MenuLink>
        }
    </li>
</CascadingValue>